home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 5: The Fifth Dimension
/
17 Bit - The Fifth Dimension (1995)(17 Bit Software)[!].iso
/
files
/
3620.dms
/
3620.adf
/
Rexx
/
Execute.filer
< prev
next >
Wrap
Text File
|
1994-01-14
|
822b
|
47 lines
/*
$VER: Execute.filer 1.1 (14.01.94)
Author:
Matthias Scheler (tron@lyssa.pb.owl.de)
Function:
Opens a string requester, asks for a command and its args and then
executes the comand in the directory of the current directory listview.
It's Filer's equivalent for the Workbench's "Execute" menu item.
Call from Filer:
EXECUTE
Example for "Filer.RC":
BUTTON ...,...,"Execute","EXECUTE"
*/
ADDRESS 'FilerRexx'
OPTIONS RESULTS
'STATUS Execute command'
PANEL OFF
Command=GETCLIP('FILER_COMMAND')
'SETSTRING' Command
GETSTRING 'Enter command and args:'
IF RESULT="RESULT" THEN
DO
PANEL ON
'STATUS Execution aborted'
EXIT 5
END
Command=RESULT
SETCLIP('FILER_COMMAND',Command)
'EXECANDWAIT' Command
UPDATESOURCEDIR
PANEL ON
'HISTORY Command "'||Command||'" executed.'